#include <iostream>
using namespace std;

signed main()
{
	string s[85];
	int cnt = 0;
	while(cin>>s[cnt]){
		cnt++;
	}
	cout<<s[cnt-1];
	for(int i=cnt-2;i>=0;i--){
		cout<<" "<<s[i];
	}
	return 0;
}
